package
{

	/**
	 * 	外部接口代理
	 * 	The Proxy Of External Interface
	 */
	public class Slot25Bridge extends Slot25Standard
	{
		public function Slot25Bridge(r:*)
		{
			super(r);
			registScript('paste', paste);
			registScript('engineerLogin', engineerLogin);
			registScript('normalLogin', normalLogin);
		}

		public function popup(s:String):void
		{
			executeScript('popup', s);
		}

		public function autoExecution():String
		{
			return executeScript('autoExecution');
		}

		public function paste(s:String):void
		{
			this.debug.print(s);
		}

		public function engineerLogin(IP:String, port:String, token:String, prefix:String):void
		{
			this.debug.print('web call back');
			this.main.createEngineer(IP, Number(port), token, prefix);
		}

		public function normalLogin(IP:String, port:String, token:String):void
		{
			this.debug.print('web call normal login');
			this.main.createGame(IP, Number(port), token, '');
		}
	}
}
